<template>
  <div class="container">
      <classTit title="机构介绍"></classTit>
      <div class="content" v-if="info">
          <wxParse :content="info" />
      </div>
       <img :src="img+'/que/no_conten@2x.png'" class="queS" v-if="queS"/>
  </div>
</template>

<script>
import classTit from "@/components/classTit"
import {startIntro} from "@/api/star"
import wxParse from 'mpvue-wxparse'
export default {
  components: {
      classTit,
      wxParse
  },

  data () {
    return {
       title:"机构介绍",
       id:"",
       info:"",
       img: this.$URL.imgurl,
       queS:false
    }
  },
  methods:{
    getIntro(){
      startIntro({id:this.id}).then(res=>{
          if(res.code==200){
             this.info=res.data
          }else if(res.code==201){
               this.queS=true
           }
      })
    }
  },
  created () {
    
  },
  onLoad(options){
     Object.assign(this.$data, this.$options.data())
     this.id=options.id;
     wx.setNavigationBarTitle({
       title: options.name,
       success: (result) => {
         
       },
       fail: () => {},
       complete: () => {}
     });
       this.getIntro()
  },
  onUnload(){
     
  },
}
</script>
<style lang="scss">
 @import url("~mpvue-wxparse/src/wxParse.css");
 .content{
   padding:  0 15px;
 }
</style>
<style scoped lang="scss">
    .queS{
      width:417rpx;
      height:324rpx;
      display:block;
      margin:50px auto;
    }
   
</style>
